<@_taskTemplateContent path=path><#assign template=object!/></@_taskTemplateContent>
<form method="post" action="taskTemplate/save.do?navTabId=taskTemplate/list" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
    <input type="hidden" name="_csrf" value="<@_csrfToken admin=true/>"/>
    <div class="formBar">
        <ul>
            <#if template?has_content><li><a class="button" href="taskTemplate/delete.do?path=${path?url}&navTabId=taskTemplate/list&_csrf=<@_csrfToken admin=true/>" title="<@t.page 'confirm.delete_file'/>" target="ajaxTodo"><@t.page 'button.delete'/></a></li></#if>
            <li><a class="button" href="taskTemplate/run.html?path=${path?url}" target="navTab" rel="taskTemplate/run"><@t.page 'task_template.exec'/></a></li>
            <li><button type="submit" class="buttonActive"><@t.page 'button.save'/></button></li>
        </ul>
    </div>
    <h2 class="contentTitle">
         <a class="button" href="taskTemplate/chipLookup.html" target="dialog" mask="true"><@t.page 'task_template.fragment'/></a>
         <a class="button" href="cmsTemplate/help.html?path=${'/include'+path?url!}&task=true" target="dialog" mask="true"><@t.page 'template.help'/></a>
    </h2>
    <div class="pageFormContent" layoutH="109">
        <div class="clearfix">
            <label><@t.page 'path'/>:</label><input name="path" class="required" type="text" maxlength="50" size="50" value="${(path)!}"/>
        </div>
           <div>
            <textarea name="content" class="code" mode="freemarkermixed">${(template)!}</textarea>
        </div>
    </div>
</form>